/**
 * Copyright (c) 2005 - 2007 FeyaSoft Corp. All Rights Reserved.
 */
package com.feyaSoft.home.web.tutor;

import org.json.JSONObject;

/**
 * @author F Zhuang
 * @Nov 7, 2007
 * 
 * This file is used to .....
 */
public class User {
	private String id;
	private String name;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This is for JSON - ajax part...
	 * 
	 * @return
	 * @throws Exception
	 */
	public JSONObject toJSONObject() throws Exception {

		JSONObject json = new JSONObject();
		json.put("name", this.name);
		json.put("id", this.id);

		return json;
	}
}
